Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 6 - Printing Resources / Printing Resources Reference
Resources Used Only for Printing Extensions


The Extension Load ('load') Resource

The extension load resource, of type gxExtensionLoadType, tells QuickDraw GX where to load an extension into the printing message chain. You must include a load resource in your extension file. The value that you define in your extension load resource specifies the default loading order for your extension when it is first added to the system. The user can modify the loading order of extensions by using the Extension Setup dialog box for each desktop printer.

Figure 6-7 shows the structure of an extension load resource.

Figure 6-7 The extension load resource

The extension load resource consists of a single value.

The extension load resource ID needs to be the constant gxExtensionLoadID.
Listing 6-6 shows an example of an extension load resource.

Listing 6-6 An example of an extension load resource

resource gxExtensionLoadType (gxExtensionLoadID, sysHeap,
                                                 purgeable)
{
   gxExtensionLoadLast
};
This resource tells QuickDraw GX to load the extension last in the message chain, which allows the extension to modify the contents of a page after any other message handlers have performed their modifications. However, the user can change this by using the Extension Setup dialog box for each desktop printer.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help